<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@page import="crm.control.LinkmanControl"%>
<%@page import="crm.model.Linkman"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>linkman_delete</title>
	</head>
	<body>
		<%
request.setCharacterEncoding("UTF-8");
int id = Integer.parseInt(request.getParameter("id"));
Linkman linkman = LinkmanControl.getLinkmanById(id);
if(LinkmanControl.deleteLinkman(id))
{
 %>
		<script type="text/javascript">
window.location.href = "linkman.jsp?id=<%=linkman.getCustomer_id()%>";
</script>
		<%}else{ %>
		<script type="text/javascript">
alert("删除失败！");
window.location.href = "linkman.jsp?id=<%=linkman.getCustomer_id()%>";
</script>
<%} %>
	</body>
</html>